package mijia

import (fm "learning/gooop/creational_patterns/factory_method")

func init() {
	fm.DefaultFactoryRegistry.Set("mijia", newMijiaLightFactory())
}

type tMijiaLightFactory struct {
}

func newMijiaLightFactory() fm.ILightFactory {
	return &tMijiaLightFactory{}
}

func (me *tMijiaLightFactory) Create(info *fm.LightInfo) (error, fm.ILight) {
	return nil, NewMijiaLight(info)
}
